import type { StoreDefinition } from "pinia";

/**重置所有本地仓库 */
export function resetStore() {
  const sotres = Object.values(
    import.meta.glob("@@/store/**.ts", { eager: true })
  );
  sotres.forEach((val: any) => {
    const useStore = val.default as StoreDefinition;
    const store = useStore();
    store.$reset();
  });
}
